const env = process.env.NODE_ENV

const prefix = '/prod-api'

const STATIC_TOKEN = `
Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6IjI4ZWZmYjVjLTQ1NjEtNDY2MC1iNDczLTAyNjk5NjExMjM3MyIsInVzZXJuYW1lIjoiYWRtaW4ifQ.7ZDbtTmoKJ9pL8OOZNEcR4ieuZxRyEtk7IFnnJoZ-lNtKguZuMfQSTE47CvykN-mW3Rd_PhVYrIoFdzA_VEG6w
`
let PATH = 'http://localhost:5173'
let BASE_URL = ''
let PROXY = ''

switch (env) {
  case 'development':
    PATH = 'http://localhost:5173'
    BASE_URL = `${PATH}${prefix}`
    PROXY = 'http://43.138.163.77'
    break
  case 'test':
    PATH = 'http://43.138.163.77'
    BASE_URL = `${PATH}${prefix}`
    PROXY = 'http://43.138.163.77'
    break
  case 'production':
    PATH = 'https://aisupport.dosz.net.cn'
    BASE_URL = `${PATH}${prefix}`
    PROXY = 'https://aisupport.dosz.net.cn'
    break
  default:
    break
}

const AWAIT_TIME = 100
// const AWAIT_TIME = 5e2

export { BASE_URL, PATH, PROXY, STATIC_TOKEN, AWAIT_TIME }
